import Vue from 'vue'
import Vuex from 'vuex'
import getters from './getters'
import app from './modules/app/app'
import settings from './modules/settings/settings'
import user from './modules/user/user'
import buildingStore from '@/store/modules/park/buildingStore'
import enterpriseStore from '@/store/modules/park/enterpriseStore'
import areaStore from '@/store/modules/car/areaStore'
import monthCardStore from '@/store/modules/car/monthCardStore'
import payStore from '@/store/modules/car/payStore'
import billingStore from '@/store/modules/car/billingStore'
import propetyStore from '@/store/modules/propety/propetyStore'
import manageStore from '@/store/modules/rod/manageStore'
import warnListStore from '@/store/modules/rod/warnListStore'
import employeeStore from '@/store/modules/system/employeeStore'
import roleStore from '@/store/modules/system/roleStore'
import menusStore from '@/store/modules/menus/menusStore'
Vue.use(Vuex)

const store = new Vuex.Store({
  modules: {
    app,
    settings,
    user,
    buildingStore,
    enterpriseStore,
    areaStore,
    monthCardStore,
    payStore,
    billingStore,
    propetyStore,
    manageStore,
    warnListStore,
    employeeStore,
    roleStore,
    menusStore
  },
  getters
})

export default store
